<script type="text/javascript">

</script>
<div class='region  region-auction region-auction-detail'>
	<div class='auction-header'>
		<h1 class='auction-header-title'><?php echo $model->category[0]->title?></h1>
		<div class='auction-add-watch-list'>
			<?php
				$this->widget('application.components.widgets.CAddWatchList',array(
							'url'=>'http://www.baidu.com',
					))
			?>
			<div class='show-auction-id'>
				<p>Auction ID:<span><?php echo '#'.$model->auction_id?></span></p>
			</div>
		</div>
	</div>
	<div class='auction-recommend '>
			<?php
				/* $this->widget('application.components.widgets.CAuctionRecommendPool',array(
						'id'				=>'recommend-grid',
						'dataProvider'		=>$recommendModel,
						'template'			=>'{items}',
						'itemView'			=>'application.components.widgets._CRecommendAuctionItem',
						'autoHeight'	 	=> array(
							'itemHeight' 	=> '155'
						)

				)) */
			?>
	</div>
	<div class='auction-detail-body'>
		<div class='row'>
			<div class='col-sm-5 '>
				<div class='auction-detail-images'>
					<?php
						$this->widget('application.components.widgets.CAuctionDetailImages', array(
							'id'=>'auction-carousel',
							'images'=>array(
								'feafe'=>array(
									'src'		=>Yii::app()->baseUrl.'/images/1.jpg',
								),
								'sdzfgsfge'=>array(
										'src'	=>Yii::app()->baseUrl.'/images/2.jpg',
								)
							)
						));
					?>
				</div>
			</div>
			<div class='col-sm-3 auction-detail-winner'>
				<ul class='winner-info'>
					<li class='current-price'>$<?php echo $model->current_price?></li>
					<li class='winner-name'>@<?php echo $model->winner_name?></li>
					<li class='avatar'><img   src="<?php echo $model->winner_img?>" alt="" class="img-circle"></li>
					<li class='countdown'>
						1d:1:1:1
					</li>
					<li><?php
							$this->widget('application.components.widgets.BidButton',array(
								'auction_id'	=>$model->auction_id,
								'customer_id'	=>Yii::app()->user->id
							));
						?>
					</li>
					<li>Each Bid Raises the Auction for $<?php echo $model->bidding_increment?></li>
				</ul>

				<div class='auction-favor'>
					<table class='table'>
						<tr>
							<th>Total Value price:</th>
							<td><?php echo '$'.$model->value_price?></td>
						</tr>
						<tr>
							<th>Price:</th>
							<td><?php echo '-$'.$model->current_price?></td>
						</tr>
						<tr>
							<th><?php echo $model->bid_nums.' '?>Bids:</th>
							<td><?php echo '-$'.($model->bid_nums*$model->bidding_increment) ?></td>
						</tr>
						<tr class='your-saving'>
							<th>Your Savings:</th>
							<td><?php echo '$'.($model->value_price-$model->current_price-($model->bid_nums*$model->bidding_increment))?></td>
						</tr>
					</table>
				</div>

				<div class='favor-info'>
					The Total value price reflects a great
					internet price for the item(s)
					in the Auction.
				</div>
			</div>
			<div class='col-sm-4 auction-bidding-history'>
				<div class='bid-history-title'>
					<h1>Bid History</h1>
					<p>Each bid Raises the Auction for $<?php echo $model->bidding_increment?></p>
				</div>
				<div class='bid-history-list'>
					<table class="table table-condensed bid-history-table">
						<thead>
							<tr>
								<th>Sale Price</th>
								<th>Bidder Name</th>
								<th>Type Of Bid</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>$0.80</td>
								<td>vicki1</td>
								<td>Auto</td>
							</tr>
							<tr>
								<td>$0.80</td>
								<td>vicki1</td>
								<td>Auto</td>
							</tr>
							<tr>
								<td>$0.80</td>
								<td>vicki1</td>
								<td>Auto</td>
							</tr>
							<tr>
								<td>$0.80</td>
								<td>vicki1</td>
								<td>Auto</td>
							</tr>
							<tr>
								<td>$0.80</td>
								<td>vicki1</td>
								<td>Auto</td>
							</tr>
							<tr>
								<td>$0.80</td>
								<td>vicki1</td>
								<td>Auto</td>
							</tr>
							<tr>
								<td>$0.80</td>
								<td>vicki1</td>
								<td>Auto</td>
							</tr>
							<tr>
								<td>$0.80</td>
								<td>vicki1</td>
								<td>Auto</td>
							</tr>
							<tr>
								<td>$0.80</td>
								<td>vicki1</td>
								<td>Auto</td>
							</tr>
							<tr>
								<td>$0.80</td>
								<td>vicki1</td>
								<td>Auto</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class='bid-history-footer'>
					<p><?php echo $model->bidders.' '?>Bidders</li>
					<p>Last 5 minutes</li>
				</div>
				<button type="button" class="btn btn-primary  btn-block">You can now use your BIN Credits to purchase this item</button>
			</div>
		</div>
	</div>
	<div class='row buy-it-now'>
		<div class='col-sm-2'>
			<h1>Buy it now</h1>
		</div>
		<div class='col-sm-3 purchase-saving'>
			<table class='table'>
				<tr>
					<th>Total Value price:</th>
					<td><?php echo '$'.$model->value_price?></td>
				</tr>
				<tr>
					<th>Cash Bids Applyed:</th>
					<td><?php echo '-$'.$model->current_price?></td>
				</tr>
				<tr class='your-saving'>
					<th>Your Purchase Price:</th>
					<td><?php echo '$'.($model->value_price-$model->current_price-($model->bid_nums*$model->bidding_increment))?></td>
				</tr>
			</table>
		</div>
		<div class='col-sm-2 buy-it-now-option'>
			<a class='more-info-bin'>Need more information about "Buy it Now" option?</a>
			<?php
				$this->widget('application.components.widgets.BuyitnowButton',array(
							'url'=>'http://www.baidu.com',
				))
			?>
		</div>
		<div class='col-sm-2 add-wathc-list-option'>
			<div>
				Don't want to but it now?
			</div>
			<?php
				$this->widget('application.components.widgets.CAddWatchList',array(
							'url'=>'http://www.baidu.com',
				))
			?>
		</div>
	</div>
	<div class='row auction-detail-description'>
		<div  class='col-sm-3'>
			<h1>Description</h1>
		</div>
		<div class='col-sm-9 auction-detail-description-content'>
			<?php echo $model->description?>
		</div>
	</div>
	<div class='row payment-information'>
			<div  class='col-sm-3'>
				<h1>Payment Information</h1>
			</div>
			<div class='col-sm-9'>
				<table class="table table-bordered table-payment-info">
				  	<tr>
				  		<th>PAYMENT METHODS</th>
				  		<th>AUCTION FEE</th>
				  		<th>SHIPPING & HANDDING</th>
				  		<th>RETURN</th>
				  		<th>ANY QUESTIONS?</th>
				  	</tr>
				  	<tr>
				  		<td><?php echo $model->payment_method?></td>
				  		<td><?php echo '$'.$model->auction_fee?></td>
				  		<td><?php echo '$'.$model->shipping_fee?></td>
				  		<td>No Returns</td>
				  		<td><a class='contact-us'>Contact us</a></td>
				  	</tr>
				</table>
			</div>
		</div>
	</div>
	<div class='auction-bottom' >
		<div class='auction-bottom-line'></div>
	</div>
</div>

